package com.hanhai.zrb.api.biz.dao.mybatis;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.hanhai.zrb.api.biz.dao.mybatis.base.BaseMapper;
import com.hanhai.zrb.model.user.UserStatisticDetail;
import com.hanhai.zrb.model.user.dto.UserStatisticDetailDto;


public interface UserStatisticDetailMapper extends BaseMapper{
	
    int insert(UserStatisticDetail record);
    
    int deleteByUserIdAndInfoIdAndType(@Param("userId")Long userId,@Param("destId")Long destId,@Param("type")Integer type);

    List<UserStatisticDetail> queryByUserId(@Param("userId") Long userId,@Param("type") Integer type);
        
    int deleteByInfoId(@Param("destId")Long destId,@Param("type")Integer type);
    
    List<UserStatisticDetail> queryByCondition(UserStatisticDetailDto userStatisticDetailDto);
    
    int getCountByType(@Param("type")Integer type,@Param("userId")Long userId);
}